from Tools import Tools

def show(title):
    cf = Tools.Config("config.ini")
    Tools.logger().success(cf.get_config("Test", "name"))
    Tools.FileOp.mkdir("linrui")
    Tools.FileOp.deldir("linrui")
    Tools.FileOp.get_totalsize("data")
    Tools.logger().success(Tools.get_date())
    print(Tools.codelist())
    print(Tools.NetAPI.get_data("sz000001"))
    ts = Tools.DB.get_engine_ts("root", "123456", "127.0.0.1:3306", "tdx", False)
    print(ts.execute("show databases"))

if __name__ == '__main__':
    Tools.logger().critical("start..")
    Tools.running(runfunc=show)
